package com.shop.service;

import org.activiti.engine.task.Comment;
import org.activiti.engine.task.Task;

import java.io.InputStream;
import java.util.List;

public interface WorkFlowService {

    /*
    * 部署 流程
    * @param in
    * @param processName
    * */
    public void saveProcess(String processName, InputStream in);

    /*
    * 启动流程
    * */
//    public void startProcess(String name);
    public void startProcess(Long id, String name);


    public List<Task> findTaskListByName(String name);


    List<Comment> findCommentListByTaskId(String taskId);

    /*
    * 保存批注 & 完成任务
    * */
//    public void submitTask(String taskId, String comment);
    // void submitTask(String taskId, String comment, String name);
    void submitTask(long id, String taskId, String comment, String name);
}
